home *** CD-ROM | disk | FTP | other *** search
/ How Many Bugs in a Box / How Many Bugs in a Box.cdr / bugs / act7 / 00471.ls < prev    next >
Encoding:
Text File  |  1995-03-28  |  559 b   |  24 lines

  1. on doblink
  2.   global animstep, animtimer, animinc, animatron
  3.   if the timer > animtimer then
  4.     set animtimer to the timer + 20
  5.     set animstep to animstep + animinc
  6.     if animstep > 4 then
  7.       set animstep to 4
  8.       set animinc to -1
  9.     end if
  10.     if animstep < 1 then
  11.       set animatron to 0
  12.     end if
  13.     set the castNum of sprite 47 to the number of cast ("eye" & animstep)
  14.   end if
  15. end
  16.  
  17. on setblink
  18.   global animstep, animtimer, animinc, animatron
  19.   set animstep to 1
  20.   set animtimer to the timer + 20
  21.   set animinc to 1
  22.   set animatron to 1
  23. end
  24.